//
//  NetworkTool.h
//  网络工具类
//
//  Created by 吴俊杰 on 2016/11/13.
//  Copyright © 2016年 吴俊杰. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

@interface NetworkTool : AFHTTPSessionManager

/**
 获取单例对象
 */
+ (instancetype)sharedNetworkTool;

/**
 GET请求
 */
- (void)GETWithURLString:(NSString *)URLString parameters:(id)parameters success:(void(^)(id response))successBlock failure:(void(^)(NSError *error))failureBlock;

/**
 POST请求
 */
- (void)POSTWithURLString:(NSString *)URLString parameters:(id)parameters success:(void(^)(id response))successBlock failure:(void(^)(NSError *error))failureBlock;



@end
